<template>
	<view class="TAccount">
		<view class="top">
			<view class="top-box">
				<view class="img">
					<image src="../../static/images/stores_list.png" mode=""></image>
				</view>
				<view class="tit">
					<view class="one">
						{{storesData.name}}
					</view>
					<view class="two">
						{{storesData.services?storesData.services.substr(0,2):"西瓜"}} | {{storesData.services?storesData.services.substr(2,2):"西瓜"}}
					</view>
				</view>
			</view>
		</view>

		<!-- 介 -->
		<view class="detail">
			<view class="item">
				<text class="iconfont icon-shenhezhong"></text>
				<text>营业时间 : {{storesData.startTime}}-{{storesData.endTime}}</text>
			</view>
			<view class="addres">
				<text class="iconfont icon-dizhi"></text>
				<text>商家地址 : {{storesData.address}}</text>
			</view>
		</view>

		<!-- 商家介绍 -->
		<view class="introduction">
			<view class="in-tit">
				商家介绍
			</view>
			<view class="in-img">
				<image :src="storesData.logo?imgUrl+storesData.logo:'../../static/images/hhh.jpg'" mode=""></image>
				<image :src="storesData.logo?imgUrl+storesData.logo:'../../static/images/hhh.jpg'" mode=""></image>
			</view>
			<view class="in-text">
				<rich-text :nodes="storesData.intro"></rich-text>
			</view>
		</view>


		<!-- 联系电话:13890987832 -->
		<view class="PhoneTel">
			<view class="TelPhones">
				<view class="iconfont icon-dianhua Telephone"></view>
				<view class="Contact">联系电话 : {{storesData.tel}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getstores
	} from "../../apis/index.js"
	import {IMAGE_BASE_URL} from '../../config/index.js'
	export default {
		data() {
			return {
				id: "",
				imgUrl :IMAGE_BASE_URL
			}
		},
		props: {
			storesData: {
				type : Object,
				default : ()=>{}
			}
		}
	}
</script>

<style lang="less">
	page {
		background-color: #fff;
	}

	.TAccount {
		// padding-bottom: 200rpx;
	}

	.top {
		overflow: hidden;
		padding: 0 25rpx;
		background: url(../../static/images/hhh.jpg) no-repeat;
		background-size: 100% 554rpx;

		// 
		.top-box {
			box-shadow: 1rpx 2rpx 20rpx #9e9e9e;
			border-radius: 10rpx;
			margin-top: 500rpx;
			margin-bottom: 50rpx;
			display: flex;
			background-color: #fff;
			padding: 30rpx 0;

			.img {
				padding-left: 38rpx;

				image {
					border-radius: 50%;
					width: 100rpx;
					height: 100rpx;
				}
			}

			.tit {
				padding-left: 38rpx;

				.one {
					font-size: 30rpx;
				}

				.two {
					font-size: 30rpx;
					padding-top: 26rpx;
				}
			}
		}
	}

	.detail {
		padding-left: 42rpx;
		margin-top: 30rpx;

		.iconfont {
			color: #ffd9b5;
			font-size: 38rpx;
			padding-right: 14rpx;
		}

		.item {
			font-size: 30rpx;
			color: #141414;
		}

		.addres {
			padding-top: 30rpx;
			font-size: 30rpx;
			color: #141414;
		}
	}

	.introduction {
		padding: 0 50rpx;
		margin-top: 90rpx;

		.in-tit {
			font-size: 32rpx;
			color: #141414;
		}

		.in-img {
			margin-top: 46rpx;
			display: flex;
			justify-content: space-around;

			image {
				border-radius: 10rpx;
				width: 45%;
				height: 160rpx;
			}
		}

		.in-text {
			margin-top: 46rpx;
			font-size: 26rpx;
			color: #141414;
		}
	}

	.PhoneTel {

		padding-bottom: 200rpx;

		.TelPhones {
			height: 133rpx;
			background-color: #f1f5f8;
			border-radius: 6rpx;
			margin: 180rpx 64rpx 0rpx 64rpx;
			// margin-bottom: 50rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;
		}
	}

	.Telephone {
		font-size: 63rpx;
		color: #ff7d00;
		position: absolute;
		left: 40rpx;
	}
</style>